package com.exposit.zbs.entity;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import java.util.Date;


/**
 * Created by Andrey on 27.08.2014.
 */

@Embeddable
public class DateValueGraphicEntryEntity {

	private Date date;
	private Double value;

	@Column(name = "value")
	public Double getValue() {

		return value;
	}

	public void setValue(Double value) {

		this.value = value;
	}

	@Temporal(TemporalType.TIMESTAMP)
	@Column(name = "date", nullable = false, length = 19)
	public Date getDate() {

		return date;
	}

	public void setDate(Date date) {

		this.date = date;
	}
}
